$(()=>{

    if (error){
        layer.msg(error)
    }
    //确认按钮添加事件
    $("#confirm").click(function (e){
        e.preventDefault();

        //前端校验
        let warehouseId = $("#warehouseId").val();
        let warehouseName = $("#warehouseName").val();
        let address = $("#address").val();
        let area = $("#area").val();
        let phone = $("#phone").val;

        //todo

        $("#warehouseForm").submit();

    })

})